package com.yuzi.yuziclientsdk;

import com.yuzi.yuziclientsdk.client.YuziClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("yuzi.client")
@Data
@ComponentScan
public class YuziClientConfig {
    String accessKey;
    String secretKey;

    @Bean
    public YuziClient yuziClient() {
        return new YuziClient(accessKey, secretKey);
    }

}
